import httpRequest from '@/utils/httpRequest'
import constant from '../constant'
// 查询
export function pageData (data) {
  return httpRequest({
    url: constant.DR + '/rule/entity/getQuality',
    method: 'post',
    data: data
  })
}
// 禁用
export function getData (data) {
  return httpRequest({
    url: constant.DR + '/rule/entity/updateQuality',
    method: 'post',
    data: data
  })
}
// 新增编辑
export function saveData (data) {
  return httpRequest({
    url: constant.DR + '/rule/entity/addQuality',
    method: 'post',
    data: data
  })
}
// 获取实体类列表数据
export function entityList (data) {
  return httpRequest({
    url: constant.DR + '/rule/entity/list',
    method: 'post',
    data: data
  })
}
// 获取实体类列表数据
export function checkRepeat (data) {
  return httpRequest({
    url: constant.DR + '/rule/entity/checkRepeat',
    method: 'post',
    data: data
  })
}
